package com.study.jyg.rxjava2study.activity;

import android.os.Bundle;
import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.textfield.TextInputEditText;
import com.google.android.material.textfield.TextInputLayout;
import androidx.appcompat.widget.Toolbar;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;

import com.study.jyg.rxjava2study.R;
import com.study.jyg.rxjava2study.base.BasicActivity;

import butterknife.BindView;
import butterknife.ButterKnife;


/**
 * edit新布局效果
 */
public class TextInputLayoutActivity extends BasicActivity {


    @BindView(R.id.toolbar)
    Toolbar toolbar;
    @BindView(R.id.appBar)
    AppBarLayout appBar;
    @BindView(R.id.edit)
    EditText edit;
    @BindView(R.id.tLayout1)
    TextInputLayout tLayout1;
    @BindView(R.id.tEdit)
    TextInputEditText tEdit;
    @BindView(R.id.tLayout2)
    TextInputLayout tLayout2;
    @BindView(R.id.btnXiahuaxian)
    Button btnXiahuaxian;

    @Override
    protected int getLayout() {
        return R.layout.activity_text_input_layout;
    }

    @Override
    protected void initView() {
        toolbar.setTitle("TextInputLayout");
        setSupportActionBar(toolbar);
        toolbar.setNavigationOnClickListener(v -> finish());

        btnXiahuaxian.setOnClickListener(v -> {

        });
    }

}
